<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>AmpleHarvest: cTABLE_UserGroups.php Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">AmpleHarvest
   &#160;<span id="projectnumber">0.0.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('c_t_a_b_l_e___user_groups_8php.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">cTABLE_UserGroups.php</div>  </div>
</div>
<div class="contents">
<a href="c_t_a_b_l_e___user_groups_8php.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 &lt;?php
<a name="l00005"></a>00005         use\ampleharvest\code;
<a name="l00006"></a>00006         require_once dirname(dirname(dirname(__FILE__))) . <span class="stringliteral">&#39;/config/cConfig.php&#39;</span>;
<a name="l00010"></a>00010         require_once code\cConfig::C_STR_DATABASE_LIB_PATH . <span class="stringliteral">&quot;/Classes/cTable.php&quot;</span>;
<a name="l00014"></a>00014         require_once code\cConfig::C_STR_DATABASE_LIB_PATH . <span class="stringliteral">&quot;/Classes/ColTypes.php&quot;</span>;
<a name="l00015"></a>00015 
<a name="l00029"></a><a class="code" href="classc_t_a_b_l_e___user_groups.html">00029</a>         <span class="keyword">class </span><a class="code" href="classc_t_a_b_l_e___user_groups.html" title="Includes the base class for Tables (uses base path from the cinfo file.">cTABLE_UserGroups</a> <span class="keyword">extends</span> cTable
<a name="l00030"></a>00030         {
<a name="l00031"></a>00031 
<a name="l00036"></a><a class="code" href="classc_t_a_b_l_e___user_groups.html#ad077898da1668be20c85ec881a673c2e">00036</a>                 <span class="keyword">public</span> <a class="code" href="classc_t_a_b_l_e___user_groups.html#ad077898da1668be20c85ec881a673c2e">$m_int_COL_ID</a> = null;
<a name="l00037"></a><a class="code" href="classc_t_a_b_l_e___user_groups.html#a46849cf0ab2b44afc31f298a3c16f556">00037</a>                 <span class="keyword">public</span> <a class="code" href="classc_t_a_b_l_e___user_groups.html#a46849cf0ab2b44afc31f298a3c16f556">$m_int_COL_Access</a> = null;
<a name="l00038"></a><a class="code" href="classc_t_a_b_l_e___user_groups.html#aedffcba43751d67cce26b81315fba90a">00038</a>                 <span class="keyword">public</span> <a class="code" href="classc_t_a_b_l_e___user_groups.html#aedffcba43751d67cce26b81315fba90a">$m_int_COL_Name</a> = null;
<a name="l00039"></a><a class="code" href="classc_t_a_b_l_e___user_groups.html#a1e615143ae9dfbad588856e7e2d8c68d">00039</a>                 <span class="keyword">public</span> <a class="code" href="classc_t_a_b_l_e___user_groups.html#a1e615143ae9dfbad588856e7e2d8c68d">$m_int_COL_Requester</a> = null;
<a name="l00040"></a><a class="code" href="classc_t_a_b_l_e___user_groups.html#a15bd2b1d39fd61d25a87696cf196035f">00040</a>                 <span class="keyword">public</span> <a class="code" href="classc_t_a_b_l_e___user_groups.html#a15bd2b1d39fd61d25a87696cf196035f">$m_int_COL_Justification</a> = null;
<a name="l00041"></a><a class="code" href="classc_t_a_b_l_e___user_groups.html#ac1ed68d74bd0570df3e86bcb331332bc">00041</a>                 <span class="keyword">public</span> <a class="code" href="classc_t_a_b_l_e___user_groups.html#ac1ed68d74bd0570df3e86bcb331332bc">$m_int_COL_Desc</a> = null;
<a name="l00042"></a><a class="code" href="classc_t_a_b_l_e___user_groups.html#a49b0fdedf93797f95926d4c6f4e13cad">00042</a>                 <span class="keyword">public</span> <a class="code" href="classc_t_a_b_l_e___user_groups.html#a49b0fdedf93797f95926d4c6f4e13cad">$m_int_COL_Active</a> = null;
<a name="l00043"></a><a class="code" href="classc_t_a_b_l_e___user_groups.html#a78b39c6ccf8f186b30108b763c39ace8">00043</a>                 <span class="keyword">public</span> <a class="code" href="classc_t_a_b_l_e___user_groups.html#a78b39c6ccf8f186b30108b763c39ace8">$m_int_COL_Disapproved</a> = null;
<a name="l00044"></a><a class="code" href="classc_t_a_b_l_e___user_groups.html#adea6769d082c0a58b958a599b83e8a1a">00044</a>                 <span class="keyword">public</span> <a class="code" href="classc_t_a_b_l_e___user_groups.html#adea6769d082c0a58b958a599b83e8a1a">$m_int_COL_DisaprovalReason</a> = null;
<a name="l00045"></a><a class="code" href="classc_t_a_b_l_e___user_groups.html#aaa9d3c221074243547aace5f10de63f1">00045</a>                 <span class="keyword">public</span> <a class="code" href="classc_t_a_b_l_e___user_groups.html#aaa9d3c221074243547aace5f10de63f1">$m_int_COL_Classification</a> = null;
<a name="l00046"></a><a class="code" href="classc_t_a_b_l_e___user_groups.html#ab831144db227f14353401634b2652d27">00046</a>                 <span class="keyword">public</span> <a class="code" href="classc_t_a_b_l_e___user_groups.html#ab831144db227f14353401634b2652d27">$m_int_COL_SCI</a> = null;
<a name="l00047"></a><a class="code" href="classc_t_a_b_l_e___user_groups.html#a0e6794fef233e297ac960b8deca74fde">00047</a>                 <span class="keyword">public</span> <a class="code" href="classc_t_a_b_l_e___user_groups.html#a0e6794fef233e297ac960b8deca74fde">$m_int_COL_Distro</a> = null;
<a name="l00055"></a><a class="code" href="classc_t_a_b_l_e___user_groups.html#a095c5d389db211932136b53f25f39685">00055</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_t_a_b_l_e___user_groups.html#a095c5d389db211932136b53f25f39685" title="This constructor sets all the required column data.">__construct</a>()
<a name="l00056"></a>00056                 {
<a name="l00057"></a>00057                         $this-&gt;m_str_TableName = <span class="stringliteral">&quot;user_groups&quot;</span>;
<a name="l00058"></a>00058                         $this-&gt;set_Engine(self::C_STR_ENGINE_INNODB);
<a name="l00059"></a>00059 
<a name="l00060"></a>00060                         <span class="comment">//Create Column Objects</span>
<a name="l00061"></a>00061                         $obj_COL_ID = <span class="keyword">new</span> cColVarChar(<span class="stringliteral">&quot;id&quot;</span>);
<a name="l00062"></a>00062                         $obj_COL_ID-&gt;set_Length(36);
<a name="l00063"></a>00063                         $obj_COL_ID-&gt;set_Index(abs_Column::c_int_INDEX_PRIMARY);
<a name="l00064"></a>00064                         $obj_COL_ID-&gt;set_Comment(<span class="stringliteral">&quot;This column holds the ID of the referance.&quot;</span>);
<a name="l00065"></a>00065                         $obj_COL_ID-&gt;set_Editable(<span class="keyword">false</span>);
<a name="l00066"></a>00066                         $obj_COL_ID-&gt;set_Label(<span class="stringliteral">&quot;ID&quot;</span>);
<a name="l00067"></a>00067 
<a name="l00068"></a>00068                         $obj_COL_Access = <span class="keyword">new</span> cColTinyInt(<span class="stringliteral">&quot;access&quot;</span>);
<a name="l00069"></a>00069                         $obj_COL_Access-&gt;set_Index(abs_Column::c_int_INDEX_INDEX);
<a name="l00070"></a>00070                         $obj_COL_Access-&gt;set_Comment(<span class="stringliteral">&quot;This column holds the Access level from 0-2.&quot;</span>);
<a name="l00071"></a>00071                         $obj_COL_Access-&gt;set_Label(<span class="stringliteral">&quot;Access&quot;</span>);                   
<a name="l00072"></a>00072                         
<a name="l00073"></a>00073                         $obj_COL_Name = <span class="keyword">new</span> cColVarChar(<span class="stringliteral">&quot;name&quot;</span>);
<a name="l00074"></a>00074                         $obj_COL_Name-&gt;set_Length(200);
<a name="l00075"></a>00075                         $obj_COL_Name-&gt;set_Comment(<span class="stringliteral">&quot;This column holds the name of the group.&quot;</span>);
<a name="l00076"></a>00076                         $obj_COL_Name-&gt;set_Label(<span class="stringliteral">&quot;Group Name&quot;</span>);
<a name="l00077"></a>00077 
<a name="l00078"></a>00078                         $obj_COL_Requester = <span class="keyword">new</span> cColVarChar(<span class="stringliteral">&quot;requester&quot;</span>);
<a name="l00079"></a>00079                         $obj_COL_Requester-&gt;set_Length(36);
<a name="l00080"></a>00080                         $obj_COL_Requester-&gt;set_Index(abs_Column::c_int_INDEX_INDEX);
<a name="l00081"></a>00081                         $obj_COL_Requester-&gt;set_Comment(<span class="stringliteral">&quot;This column holds the ID of the User that requested the Group.&quot;</span>);
<a name="l00082"></a>00082                         $obj_COL_Requester-&gt;set_Editable(<span class="keyword">false</span>);
<a name="l00083"></a>00083                         $obj_COL_Requester-&gt;set_Label(<span class="stringliteral">&quot;Requester&quot;</span>);
<a name="l00084"></a>00084 
<a name="l00085"></a>00085                         $obj_COL_Justification = <span class="keyword">new</span> cColBlob(<span class="stringliteral">&quot;justification&quot;</span>);
<a name="l00086"></a>00086                         $obj_COL_Justification-&gt;set_Comment(<span class="stringliteral">&quot;This is the Justification for the group creation.&quot;</span>);
<a name="l00087"></a>00087                         $obj_COL_Justification-&gt;set_Label(<span class="stringliteral">&quot;Justification&quot;</span>);
<a name="l00088"></a>00088 
<a name="l00089"></a>00089                         $obj_COL_Desc = <span class="keyword">new</span> cColBlob(<span class="stringliteral">&quot;description&quot;</span>);
<a name="l00090"></a>00090                         $obj_COL_Desc-&gt;set_Comment(<span class="stringliteral">&quot;This is the Description of the group.&quot;</span>);
<a name="l00091"></a>00091                         $obj_COL_Desc-&gt;set_Label(<span class="stringliteral">&quot;Description&quot;</span>);
<a name="l00092"></a>00092 
<a name="l00093"></a>00093                         $obj_COL_Active = <span class="keyword">new</span> cColTinyInt(<span class="stringliteral">&quot;active&quot;</span>);
<a name="l00094"></a>00094                         $obj_COL_Active-&gt;set_Index(abs_Column::c_int_INDEX_INDEX);
<a name="l00095"></a>00095                         $obj_COL_Active-&gt;set_Comment(<span class="stringliteral">&quot;The 1 if group is active 0 if group is not.&quot;</span>);
<a name="l00096"></a>00096                         $obj_COL_Active-&gt;set_Label(<span class="stringliteral">&quot;Active&quot;</span>);
<a name="l00097"></a>00097 
<a name="l00098"></a>00098                         $obj_COL_Disapproved = <span class="keyword">new</span> cColTinyInt(<span class="stringliteral">&quot;disapproved&quot;</span>);
<a name="l00099"></a>00099                         $obj_COL_Disapproved-&gt;set_Index(abs_Column::c_int_INDEX_INDEX);
<a name="l00100"></a>00100                         $obj_COL_Disapproved-&gt;set_Comment(<span class="stringliteral">&quot;The 1 if group is disapproved 0 if group is not.&quot;</span>);
<a name="l00101"></a>00101                         $obj_COL_Disapproved-&gt;set_Label(<span class="stringliteral">&quot;Disapproved&quot;</span>);
<a name="l00102"></a>00102 
<a name="l00103"></a>00103                         $obj_COL_DisaprovalReason = <span class="keyword">new</span> cColBlob(<span class="stringliteral">&quot;disapproval_reason&quot;</span>);
<a name="l00104"></a>00104                         $obj_COL_DisaprovalReason-&gt;set_Comment(<span class="stringliteral">&quot;The reason the group was disapproved.&quot;</span>);
<a name="l00105"></a>00105                         $obj_COL_DisaprovalReason-&gt;set_Label(<span class="stringliteral">&quot;Disaproval Reason&quot;</span>);
<a name="l00106"></a>00106 
<a name="l00107"></a>00107                         $obj_COL_Classification = <span class="keyword">new</span> cColVarChar(<span class="stringliteral">&quot;classification&quot;</span>);
<a name="l00108"></a>00108                         $obj_COL_Classification-&gt;set_Length(36);
<a name="l00109"></a>00109                         $obj_COL_Classification-&gt;set_Comment(<span class="stringliteral">&quot;This column holds the classification of the Request.&quot;</span>);
<a name="l00110"></a>00110                         $obj_COL_Classification-&gt;set_Label(<span class="stringliteral">&quot;Classification&quot;</span>);
<a name="l00111"></a>00111 
<a name="l00112"></a>00112                         $obj_COL_SCI = <span class="keyword">new</span> cColVarChar(<span class="stringliteral">&quot;sci&quot;</span>);
<a name="l00113"></a>00113                         $obj_COL_SCI-&gt;set_Length(100);
<a name="l00114"></a>00114                         $obj_COL_SCI-&gt;set_Comment(<span class="stringliteral">&quot;This column holds the SCI portion of the classification of the Request.&quot;</span>);
<a name="l00115"></a>00115                         $obj_COL_SCI-&gt;set_Label(<span class="stringliteral">&quot;SCI&quot;</span>);
<a name="l00116"></a>00116 
<a name="l00117"></a>00117                         $obj_COL_Distro = <span class="keyword">new</span> cColVarChar(<span class="stringliteral">&quot;distro&quot;</span>);
<a name="l00118"></a>00118                         $obj_COL_Distro-&gt;set_Length(100);
<a name="l00119"></a>00119                         $obj_COL_Distro-&gt;set_Comment(<span class="stringliteral">&quot;This column holds the Distro portion of the classification of the Request.&quot;</span>);
<a name="l00120"></a>00120                         $obj_COL_Distro-&gt;set_Label(<span class="stringliteral">&quot;Distro&quot;</span>);
<a name="l00121"></a>00121 
<a name="l00122"></a>00122                         <span class="comment">//Set up connection</span>
<a name="l00123"></a>00123                         $this-&gt;m_obj_Connection = <span class="keyword">new</span> cConnection(<span class="stringliteral">&quot;AmpleHarvest&quot;</span>, <span class="stringliteral">&quot;admin&quot;</span>);
<a name="l00124"></a>00124 
<a name="l00125"></a>00125                         <span class="comment">//Activate all Debug options</span>
<a name="l00126"></a>00126                         $this-&gt;m_obj_Connection-&gt;set_DebugLevel(cLog_Connection_Debug::c_int_LEVEL_HIDDEN);
<a name="l00127"></a>00127                         $this-&gt;m_obj_Connection-&gt;set_LogLevel(cLog_Connection::c_int_LEVEL_BASIC);
<a name="l00128"></a>00128                         <span class="comment">//$this-&gt;m_obj_Connection-&gt;activate_Logging();</span>
<a name="l00129"></a>00129                         <span class="comment">//$this-&gt;m_obj_Connection-&gt;activate_LogDebug();</span>
<a name="l00130"></a>00130                         <span class="comment">//$this-&gt;m_obj_Connection-&gt;activate_ScreenDebug();</span>
<a name="l00131"></a>00131 
<a name="l00132"></a>00132                         $this-&gt;m_int_COL_ID = $this-&gt;add_Column($obj_COL_ID);
<a name="l00133"></a>00133                         $this-&gt;m_int_COL_Access = $this-&gt;add_Column($obj_COL_Access);
<a name="l00134"></a>00134                         $this-&gt;m_int_COL_Active = $this-&gt;add_Column($obj_COL_Active);
<a name="l00135"></a>00135                         $this-&gt;m_int_COL_Classification = $this-&gt;add_Column($obj_COL_Classification);
<a name="l00136"></a>00136                         $this-&gt;m_int_COL_Desc = $this-&gt;add_Column($obj_COL_Desc);
<a name="l00137"></a>00137                         $this-&gt;m_int_COL_Disapproved = $this-&gt;add_Column($obj_COL_Disapproved);
<a name="l00138"></a>00138                         $this-&gt;m_int_COL_DisaprovalReason = $this-&gt;add_Column($obj_COL_DisaprovalReason);
<a name="l00139"></a>00139                         $this-&gt;m_int_COL_Distro = $this-&gt;add_Column($obj_COL_Distro);
<a name="l00140"></a>00140                         $this-&gt;m_int_COL_Justification = $this-&gt;add_Column($obj_COL_Justification);
<a name="l00141"></a>00141                         $this-&gt;m_int_COL_Name = $this-&gt;add_Column($obj_COL_Name);
<a name="l00142"></a>00142                         $this-&gt;m_int_COL_Requester = $this-&gt;add_Column($obj_COL_Requester);
<a name="l00143"></a>00143                         $this-&gt;m_int_COL_SCI = $this-&gt;add_Column($obj_COL_SCI);
<a name="l00144"></a>00144                 }
<a name="l00145"></a>00145 
<a name="l00149"></a><a class="code" href="classc_t_a_b_l_e___user_groups.html#a2055504e90b0a396c1de85aaad0c80ab">00149</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_t_a_b_l_e___user_groups.html#a2055504e90b0a396c1de85aaad0c80ab" title="This function is used to insert Data into the database.">insert_Data2DB</a>()
<a name="l00150"></a>00150                 {
<a name="l00151"></a>00151                         <span class="keywordflow">if</span> (!$this-&gt;get_id())
<a name="l00152"></a>00152                         {
<a name="l00153"></a>00153                                 $this-&gt;set_id($this-&gt;create_GUID());
<a name="l00154"></a>00154                         }
<a name="l00155"></a>00155 
<a name="l00156"></a>00156                         <span class="keywordflow">return</span> <a class="code" href="classc_t_a_b_l_e___user_groups.html#a2055504e90b0a396c1de85aaad0c80ab" title="This function is used to insert Data into the database.">parent::insert_Data2DB</a>();
<a name="l00157"></a>00157                 }
<a name="l00158"></a>00158 
<a name="l00162"></a><a class="code" href="classc_t_a_b_l_e___user_groups.html#a42e7dcfc7851c0dedcafb63968ffbc02">00162</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_t_a_b_l_e___user_groups.html#a42e7dcfc7851c0dedcafb63968ffbc02" title="Saves Information to the Database.">save_Data2DB</a>()
<a name="l00163"></a>00163                 {
<a name="l00164"></a>00164                         <span class="keywordflow">if</span> ($this-&gt;<a class="code" href="classc_t_a_b_l_e___user_groups.html#acbb490790d87e7fdee9fc1d53354947b" title="Returns if the id is a valid and existing ID.">validate_ID</a>($this-&gt;get_id()))
<a name="l00165"></a>00165                         {
<a name="l00166"></a>00166                                 <span class="keywordflow">return</span> $this-&gt;update_Data2DB();
<a name="l00167"></a>00167                         }
<a name="l00168"></a>00168                         <span class="keywordflow">else</span>
<a name="l00169"></a>00169                         {
<a name="l00170"></a>00170                                 <span class="keywordflow">return</span> $this-&gt;<a class="code" href="classc_t_a_b_l_e___user_groups.html#a2055504e90b0a396c1de85aaad0c80ab" title="This function is used to insert Data into the database.">insert_Data2DB</a>();
<a name="l00171"></a>00171                         }
<a name="l00172"></a>00172                 }
<a name="l00173"></a>00173 
<a name="l00174"></a><a class="code" href="classc_t_a_b_l_e___user_groups.html#a0001ac169d54c3f492f107fb76d678c2">00174</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_t_a_b_l_e___user_groups.html#a0001ac169d54c3f492f107fb76d678c2">insert_DefaultData</a>()
<a name="l00175"></a>00175                 {
<a name="l00176"></a>00176                         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00177"></a>00177                 }
<a name="l00178"></a>00178 
<a name="l00184"></a><a class="code" href="classc_t_a_b_l_e___user_groups.html#acbb490790d87e7fdee9fc1d53354947b">00184</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_t_a_b_l_e___user_groups.html#acbb490790d87e7fdee9fc1d53354947b" title="Returns if the id is a valid and existing ID.">validate_ID</a>(<a class="code" href="task__runner_8php.html#a638f33f9a90952d7cebdf44588e8f40b">$str_ID</a>)
<a name="l00185"></a>00185                 {
<a name="l00186"></a>00186                         <span class="comment">// ensure that there is an ID passed and that it is a valid GUID</span>
<a name="l00187"></a>00187                         <span class="keywordflow">if</span> (!empty(<a class="code" href="task__runner_8php.html#a638f33f9a90952d7cebdf44588e8f40b">$str_ID</a>) &amp;&amp; preg_match(self::c_REG_GUID_VALID, <a class="code" href="task__runner_8php.html#a638f33f9a90952d7cebdf44588e8f40b">$str_ID</a>))
<a name="l00188"></a>00188                         {
<a name="l00189"></a>00189                                 $this-&gt;clear_Query();
<a name="l00190"></a>00190                                 $this-&gt;add_ColumnQuery($this-&gt;m_int_COL_ID, <a class="code" href="task__runner_8php.html#a638f33f9a90952d7cebdf44588e8f40b">$str_ID</a>);
<a name="l00191"></a>00191                                 <span class="keywordflow">if</span> ($this-&gt;do_Search() &gt; 0)
<a name="l00192"></a>00192                                 {
<a name="l00193"></a>00193                                         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00194"></a>00194                                 }
<a name="l00195"></a>00195                         }
<a name="l00196"></a>00196                         <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00197"></a>00197                 }
<a name="l00198"></a>00198 
<a name="l00204"></a><a class="code" href="classc_t_a_b_l_e___user_groups.html#a7f7d36d28f818d0d64ae30da6f170a0a">00204</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_t_a_b_l_e___user_groups.html#a7f7d36d28f818d0d64ae30da6f170a0a" title="Loads information into object from Database based on ID passed.">load_DataFromID</a>(<a class="code" href="task__runner_8php.html#a638f33f9a90952d7cebdf44588e8f40b">$str_ID</a>)
<a name="l00205"></a>00205                 {
<a name="l00206"></a>00206                         $this-&gt;clear();
<a name="l00207"></a>00207 
<a name="l00208"></a>00208                         <span class="keywordflow">if</span> ($this-&gt;<a class="code" href="classc_t_a_b_l_e___user_groups.html#acbb490790d87e7fdee9fc1d53354947b" title="Returns if the id is a valid and existing ID.">validate_ID</a>(<a class="code" href="task__runner_8php.html#a638f33f9a90952d7cebdf44588e8f40b">$str_ID</a>))
<a name="l00209"></a>00209                         {
<a name="l00210"></a>00210                                 $this-&gt;clear_Query();
<a name="l00211"></a>00211                                 $this-&gt;add_ColumnQuery($this-&gt;m_int_COL_ID, <a class="code" href="task__runner_8php.html#a638f33f9a90952d7cebdf44588e8f40b">$str_ID</a>);
<a name="l00212"></a>00212                                 <span class="keywordflow">if</span> ($this-&gt;do_Search() &gt; 0)
<a name="l00213"></a>00213                                 {
<a name="l00214"></a>00214                                         $obj_RS = $this-&gt;get_ResultSet();
<a name="l00215"></a>00215                                         <span class="keywordflow">if</span> ($obj_RS[0])
<a name="l00216"></a>00216                                         {
<a name="l00217"></a>00217                                                 $this-&gt;load_DataFromArray($obj_RS[0]);
<a name="l00218"></a>00218                                                 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00219"></a>00219                                         }
<a name="l00220"></a>00220                                 }
<a name="l00221"></a>00221                         }
<a name="l00222"></a>00222                         <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00223"></a>00223                 }
<a name="l00224"></a>00224         }
<a name="l00225"></a>00225 ?&gt;
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="c_t_a_b_l_e___user_groups_8php.html">cTABLE_UserGroups.php</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Mon Jan 23 2012 13:34:20 for AmpleHarvest by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
